<?php /* Smarty version Smarty-3.1.18, created on 2015-07-07 23:06:43
         compiled from "D:\WWW\yf_qiaqia\Admin\View\Menu\category.html" */ ?>
<?php /*%%SmartyHeaderCode:26385559b8252a4b6f0-95376263%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '18bbb09b69c0fab012d2b9ebbae55ea0c7a18e9a' => 
    array (
      0 => 'D:\\WWW\\yf_qiaqia\\Admin\\View\\Menu\\category.html',
      1 => 1436281599,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '26385559b8252a4b6f0-95376263',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_559b8252ed3a87_59022149',
  'variables' => 
  array (
    '_C' => 0,
    'menu' => 0,
    'parent_list' => 0,
    'list' => 0,
    '_L' => 0,
    'id' => 0,
    'action' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_559b8252ed3a87_59022149')) {function content_559b8252ed3a87_59022149($_smarty_tpl) {?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css" />
	</head>

	<body>
		<?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<div class="am-g">
			<div class="am-tabs am-margin" data-am-tabs="">
				<ul class="am-tabs-nav am-nav am-nav-tabs">
					<li class="am-active"><a hidefocus="true" href="#tab1">基本详情</a>
					</li>
					<li class=""><a hidefocus="true" href="#tab3">SEO 选项</a>
					</li>
				</ul>

				<form class="am-tabs-bd am-form hy-js-form" style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">

					<div class="am-tab-panel am-fade am-active am-in" id="tab1">
						<div class="am-g am-margin-top">
							<div class="am-u-sm-2 am-text-right">打开方式</div>
							<div class="am-u-sm-10">
								<div class="am-btn-group hy-js-menutab" data-am-button="">
									<label data-target='#link1' class="hy-js-menubtn am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']==0) {?>am-active <?php } else { ?><?php }?><?php } else { ?>am-active <?php }?>">
										<input type="radio" <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']==0) {?>checked="checked" <?php } else { ?><?php }?><?php } else { ?>checked="checked" <?php }?> name="is_extend_links" value="0" id="option1">内链
									</label>
									<label data-target='#link2' class="hy-js-menubtn am-btn am-btn-default am-btn-xs<?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']==1) {?> am-active <?php } else { ?><?php }?>">
										<input type="radio" name="is_extend_links" <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']==1) {?>checked="checked" <?php } else { ?><?php }?> value="1" id="option2"> 外链
									</label>
								</div>
							</div>
						</div>
						<div class="am-g am-margin-top">
							<div class="am-u-sm-2 am-text-right">
								栏目标题
							</div>
							<div class="am-u-sm-4 am-u-end">
								<input type="text" name="name" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['name'];?>
" class="am-input-sm">
							</div>
						</div>

						<?php if ($_smarty_tpl->tpl_vars['_C']->value['DIGLOSSIA']==1) {?>
						<div class="am-g am-margin-top">
							<div class="am-u-sm-2 am-text-right">
								英文标题
							</div>
							<div class="am-u-sm-4 am-u-end">
								<input type="text" name="en_name" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['en_name'];?>
" class="am-input-sm">
							</div>
						</div>
						<?php }?>
						<div class="am-g am-margin-top">
							<div class="am-u-sm-2 am-text-right">
								栏目别名
							</div>
							<div class="am-u-sm-4 am-u-end">
								<input type="text" name="code" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['code'];?>
" placeholder="必填，作为唯一识别栏目，例如填写:index" class="am-input-sm">
							</div>
						</div>

						<div class="am-g am-margin-top">
							<div class="am-u-sm-2 am-text-right">父级栏目</div>
							<div class="am-u-sm-4 am-u-end">
								<select name="parent_id">
									<option value="0">无父级栏目</option>
									<?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['parent_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value) {
$_smarty_tpl->tpl_vars['list']->_loop = true;
?>
									<option <?php if ($_smarty_tpl->tpl_vars['menu']->value['parent_id']==$_smarty_tpl->tpl_vars['list']->value['id']) {?> selected="selected" <?php }?> value="<?php echo $_smarty_tpl->tpl_vars['list']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['list']->value['name'];?>
</option>
									<?php } ?>
								</select>
							</div>
						</div>

						<div id='link2' <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']==1) {?>style='display: block;' <?php } else { ?><?php }?> class="am-g am-margin-top hy-js-menupanel hy-hide">
							<div class="am-u-sm-2 am-text-right">
								链接
							</div>
							<div class="am-u-sm-4 am-u-end">
								<input type="text" name="redirect_url" <?php if ($_smarty_tpl->tpl_vars['menu']->value['redirect_url']) {?> value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['redirect_url'];?>
" <?php } else { ?> value="http://" <?php }?> class="am-input-sm">
							</div>
						</div>

						<div id='link1' <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['is_extend_links']==0) {?>style='display: block;' <?php } else { ?><?php }?><?php } else { ?>style='display: block;' <?php }?> class="am-g am-margin-top hy-js-menupanel hy-hide">
							<div class="am-u-sm-2 am-text-right">栏目类型</div>
							<div class="am-u-sm-4 am-u-end">
								<select name="type">
									<option <?php if ($_smarty_tpl->tpl_vars['menu']->value['type']==1) {?> selected="selected" <?php }?> value="1">文章模块</option>
									<option <?php if ($_smarty_tpl->tpl_vars['menu']->value['type']==2) {?> selected="selected" <?php }?> value="2">相册模块</option>
									<option <?php if ($_smarty_tpl->tpl_vars['menu']->value['type']==3) {?> selected="selected" <?php }?> value="3">单页模块</option>
									<option <?php if ($_smarty_tpl->tpl_vars['menu']->value['type']==4) {?> selected="selected" <?php }?> value="4">产品模块</option>
								</select>
							</div>
						</div>

						<div class="am-g am-margin-top">
							<div class="am-u-sm-2 am-text-right">
								上传图片
							</div>
							<div class="am-u-sm-4">
								<input type="text" name="thumb" class="am-input-sm" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['thumb'];?>
">

							</div>
							<div class="am-u-sm-1">
								<img id="hy-thumb" style="height: 30px;" <?php if ($_smarty_tpl->tpl_vars['menu']->value['thumb']) {?>src="<?php echo $_smarty_tpl->tpl_vars['menu']->value['thumb'];?>
" <?php } else { ?> src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
images/logo2.png" <?php }?>>
							</div>
							<div class="am-u-sm-4 am-u-end">
								<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg">上传</button>
							</div>
						</div>
						<div class="am-g am-margin-top">
							<div class="am-u-sm-2 am-text-right">是否显示</div>
							<div class="am-u-sm-10">
								<div class="am-btn-group" data-am-button="">
									<label class="am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['is_show']==1) {?>am-active<?php } else { ?><?php }?><?php } else { ?>am-active<?php }?>  ">
										<input type="radio" <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['is_show']==1) {?>checked="checked" <?php } else { ?><?php }?><?php } else { ?>checked="checked" <?php }?> name="is_show" value="1" id="option1"> 显示
									</label>
									<label class="am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['is_show']==2) {?>am-active<?php } else { ?><?php }?><?php } else { ?><?php }?>">
										<input type="radio" <?php if ($_smarty_tpl->tpl_vars['menu']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['is_show']==2) {?>checked="checked" <?php } else { ?><?php }?><?php } else { ?><?php }?> name="is_show" value="2" id="option2"> 不显示
									</label>
								</div>
							</div>
						</div>
						<div class="am-g am-margin-top">
							<div class="am-u-sm-2 am-text-right"><?php echo $_smarty_tpl->tpl_vars['_L']->value['IS_NAV'];?>
</div>
							<div class="am-u-sm-10">
								<div class="am-btn-group" data-am-button="">
									<label class="am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos'][1]) {?>am-active <?php }?><?php } else { ?>am-active<?php }?>">
										<input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos']) {?><?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos'][1]) {?>checked="checked" <?php }?><?php } else { ?>checked="checked" <?php }?> name="nav_pos" value="1" id="option1"> 主导航
									</label>
									<label class="am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos'][2]) {?>am-active<?php }?>">
										<input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos'][2]) {?>checked="checked" <?php }?> name="nav_pos" value="2" id="option2"> 底部导航
									</label>
									<label class="am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos'][3]) {?>am-active<?php }?>">
										<input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos'][3]) {?>checked="checked" <?php }?> name="nav_pos" value="3" id="option2"> 顶部导航
									</label>
									<label class="am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos'][4]) {?>am-active<?php }?>">
										<input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['menu']->value['nav_pos'][4]) {?>checked="checked" <?php }?> name="nav_pos" value="4" id="option2"> 侧导航
									</label>
								</div>
							</div>
						</div>
					</div>

					<div class="am-tab-panel am-fade" id="tab3">
						<div class="am-g am-margin-top-sm">
							<div class="am-u-sm-2 am-text-right">
								SEO 标题
							</div>
							<div class="am-u-sm-4 am-u-end">
								<input type="text" name="page_title" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['page_title'];?>
" class="am-input-sm">
							</div>
						</div>

						<div class="am-g am-margin-top-sm">
							<div class="am-u-sm-2 am-text-right">
								SEO 关键字
							</div>
							<div class="am-u-sm-4 am-u-end">
								<input name="keywords" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['keywords'];?>
" type="text" class="am-input-sm">
							</div>
						</div>

						<div class="am-g am-margin-top-sm">
							<div class="am-u-sm-2 am-text-right">
								SEO 描述
							</div>
							<div class="am-u-sm-4 am-u-end">
								<textarea name="description" rows="4"><?php echo $_smarty_tpl->tpl_vars['menu']->value['description'];?>
</textarea>
							</div>
						</div>
					</div>
					<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />
				</form>
				<div class="am-margin">
					<button type="button" class="am-btn am-btn-primary hy-js-submit am-btn-xs">提交保存</button>
				</div>
			</div>
		</div>
		<div class="hy-footer">

		</div>
		<?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/editor/kindeditor.js"></script>
		<script type="text/javascript">
			hy_uploadimg('/menu', {}, function(result) {
				if (typeof(result[0]) != 'undefined') {
					$('#hy-thumb').attr('src', result[0]);
					$('input[name=thumb]').val(result[0]).focus();
				}
			})
			 hy_submit('index.php?g=admin&m=menu&a=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
');
		</script>
	</body>

</html><?php }} ?>
